package ${packageName}.${moduleName}.model;

<#if formHead.existDate>
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fastrise.frjee.core.utils.json.deserialize.DateDeserialize;
</#if>
import com.fastrise.frjee.core.model.IDEntity;

/**   
 * ${functionName}Model
 * @author ${classAuthor}
 * @version ${classVersion}
 *
 */
public class ${ClassName} extends IDEntity<${ClassName}> {

	private static final long serialVersionUID = 1L;

	public ${ClassName}() {
		super();
	}

	public ${ClassName}(String id){
		this();
		this.id = id;
	}
	 
	<#list formFieldList as po>
	<#if po.fieldNameLC != 'id'>
	//${po.fieldContent}
	<#if po.fieldJavaType == 'Date'>
	@JsonDeserialize(using=DateDeserialize.class)
	<#switch po.plugType>
			<#case "datetime">
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm")
				<#break>
			<#default>
	@DateTimeFormat(pattern="yyyy-MM-dd")
		</#switch>
	</#if>
	private ${po.fieldJavaType} ${po.fieldNameLC};
	</#if>
	</#list>
	
	<#list formFieldList as po>
	<#if po.fieldNameLC != 'id'>
	/**
	 *方法: 取得${po.fieldContent}
	 *@return: ${po.fieldJavaType} ${po.fieldContent}
	 */
	<#if po.fieldJavaType == 'Date'>
		<#switch po.plugType>
			<#case "datetime">
	@JsonFormat(pattern="yyyy-MM-dd HH:mm",timezone="GMT+8")		
				<#break>
			<#default>
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
		</#switch>
	</#if>
	public ${po.fieldJavaType} get${po.fieldNameUC}(){
		return this.${po.fieldNameLC};
	}

	/**
	 *方法: 设置${po.fieldContent}
	 *@param: ${po.fieldJavaType} ${po.fieldNameLC}
	 */
	public void set${po.fieldNameUC}(${po.fieldJavaType} ${po.fieldNameLC}){
		this.${po.fieldNameLC} = ${po.fieldNameLC};
	}
	
	</#if>
	</#list>
}
